package com.bwie.controller;

import com.bwie.pojo.Status;
import com.bwie.service.StatusService;
import com.bwie.utils.R;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author : LeiMingkun
 * @date : 2024-08-07 09:57
 * @description : StatusController
 **/
@RestController
@RequestMapping("/status/status")
public class StatusController {
    @Resource
    private StatusService statusService;
    @RequestMapping("/getStatusList")
    public R getStatusList(){
        List<Status> list = statusService.list();
        return R.success(list);
    }
}